package cn.zqy.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true")
public class Library implements Serializable
{	
	/**
	 * 
	 */
	private static final long serialVersionUID = 256033585661371916L;

	@PrimaryKey
	@Persistent
	private String bookNo;
	
	@Persistent
	private String bookName="";
	
	@Persistent
	private String language="";
	
	@Persistent
	private String bookStatus="";
	
	@Persistent
	private String borrower="";
	
	@Persistent
	private String contact="";
	
	@Persistent
	private Date dateToLend;
	
	@Persistent
	private Date expectedReturnDate;
	
	@Persistent
	private String bookOwner="";

	/**
	 * @param bookNo the bookNo to set
	 */
	public void setBookNo(String bookNo)
	{
		this.bookNo = bookNo;
	}

	/**
	 * @return the bookNo
	 */
	public String getBookNo()
	{
		return bookNo;
	}

	/**
	 * @param bookName the bookName to set
	 */
	public void setBookName(String bookName)
	{
		this.bookName = bookName;
	}

	/**
	 * @return the bookName
	 */
	public String getBookName()
	{
		return bookName;
	}

	/**
	 * @param language the language to set
	 */
	public void setLanguage(String language)
	{
		this.language = language;
	}

	/**
	 * @return the language
	 */
	public String getLanguage()
	{
		return language;
	}

	/**
	 * @param bookStatus the bookStatus to set
	 */
	public void setBookStatus(String bookStatus)
	{
		this.bookStatus = bookStatus;
	}

	/**
	 * @return the bookStatus
	 */
	public String getBookStatus()
	{
		return bookStatus;
	}

	/**
	 * @return the borrower
	 */
	public String getBorrower()
	{
		return borrower;
	}

	/**
	 * @param borrower the borrower to set
	 */
	public void setBorrower(String borrower)
	{
		this.borrower = borrower;
	}

	/**
	 * @return the contact
	 */
	public String getContact()
	{
		return contact;
	}

	/**
	 * @param contact the contact to set
	 */
	public void setContact(String contact)
	{
		this.contact = contact;
	}

	/**
	 * @return the dateToLend
	 */
	public Date getDateToLend()
	{
		return dateToLend;
	}

	/**
	 * @param dateToLend the dateToLend to set
	 */
	public void setDateToLend(Date dateToLend)
	{
		this.dateToLend = dateToLend;
	}

	/**
	 * @return the expectedReturnDate
	 */
	public Date getExpectedReturnDate()
	{
		return expectedReturnDate;
	}

	/**
	 * @param bookOwner the bookOwner to set
	 */
	public void setBookOwner(String bookOwner)
	{
		this.bookOwner = bookOwner;
	}

	/**
	 * @return the bookOwner
	 */
	public String getBookOwner()
	{
		return bookOwner;
	}

	/**
	 * @param expectedReturnDate the expectedReturnDate to set
	 */
	public void setExpectedReturnDate(Date expectedReturnDate)
	{
		this.expectedReturnDate = expectedReturnDate;
	}
}
